export const searchItemList: Array<SuperSearch.SearchItem> = [
  {
    type: "input",
    label: "问题件类型",
    keyName: "typeList"
  },
  {
    type: "select",
    label: "状态",
    keyName: "state",
    optConfig: {
      label: "name",
      value: "code"
    },
    options: [
      {
        name: "禁用",
        code: 0
      },
      {
        name: "启用",
        code: 1
      }
    ]
  }
];

// 列表
export const tableColumn: Array<SuperTable.TableCoulmnItem | SuperTable.NestTableColumnItem> = [
  {
    field: "type",
    title: "问题件类型",
    minWidth: "140"
  },
  {
    field: "deadlineDates",
    title: "发起截止时间",
    minWidth: "120"
  },

  {
    field: "approvalUser",
    title: "审批人",
    minWidth: "120"
  },

  {
    field: "receivableCost",
    title: "生成费用",
    minWidth: "120"
  },

  {
    field: "proportion",
    title: "分摊比例",
    minWidth: "120"
  },
  {
    field: "state",
    title: "状态",
    minWidth: "120",
    renderSlot: "state"
  },

  {
    field: "createName",
    title: "创建人",
    minWidth: "120"
  },
  {
    field: "createTime",
    title: "更新时间",
    minWidth: "120",
    formatter: "formatDate"
  },
  {
    field: "action",
    title: "操作",
    minWidth: "180",
    renderSlot: "action"
  }
];
